import BaseUI from "../../../Core/BaseUI";
import LayerManager from "../../../Core/Libs/LayerManager";
const {ccclass, property} = cc._decorator;

@ccclass
export default class ZongmenUI extends BaseUI {

    @property(cc.Node)
    public closeNode:cc.Node = null;

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        console.log("zongmen 加载")
        this.closeNode.on(cc.Node.EventType.TOUCH_END,this.clickButton,this)
    }

    clickButton(){
        LayerManager.open("enter")
    }

    onOpen(data?: any): void {

    }

    onHide(): Promise<void> {
        return Promise.resolve(undefined);
    }

    onShow(data?: any): Promise<void> {
        return Promise.resolve(undefined);
    }
    
 
}
